<%-- 
    Document   : preview
    Created on : Dec 26, 2009, 10:08:55 PM
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table style="width: 600px;">
    <c:forEach var="testItem" items="${test.testItems}" varStatus="counter">
        <tr style="border: solid 1px;"><td>
                <table style="width: 100%;">
                    <tr>
                        <td colspan="${testItem.question.options.size$}"><p>Question # ${counter.count}: ${testItem.question.content}</p></td>
                    </tr>
                    <tr>
                        <c:forEach var="option" items="${testItem.question.options}" varStatus="counter">
                            <td><input type="radio" name="t${testItem.autoId}" id="radio" value="${counter.count}" />
                                <span <c:if test="${option.correct}"> style="font-weight: bold" </c:if>>${option.content}</span>
                            </td>
                        </c:forEach>
                    </tr>
                </table>
            </td>
        </tr>
    </c:forEach>
    <tr><td>
            <em><strong>Notice: </strong> Correct answers are bolden</em>
        </td></tr>
</table>
